<!DOCTYPE html>
<html xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>AdminLTE | UserOplog</title>
    <meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
    <!--<meta http-equiv="refresh" content="5">-->
    <script src="../static/js/right/jquery.min.js"></script>
    <!-- bootstrap 3.0.2 -->
    <link href="../static/css/bootstrap.min.css" rel="stylesheet" type="text/css"/>
    <!-- font Awesome -->
    <link href="../static/css/font-awesome.min.css" rel="stylesheet" type="text/css"/>
    <!-- Ionicons -->
    <link href="../static/css/ionicons.min.css" rel="stylesheet" type="text/css"/>
    <!-- Theme style -->
    <link href="../static/css/AdminLTE.css" rel="stylesheet" type="text/css"/>
    <link href="../static/css/glmapp.css" rel="stylesheet" type="text/css">
    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
    <script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
    <![endif]-->
</head>
<body class="skin-blue">
<!-- header logo: style can be found in header.less -->
<header class="header">
    <a href="index.html" class="logo">
        <!-- Add the class icon to your logo image or logo icon to add the margining -->
        AdminLTE
    </a>
    <!-- Header Navbar: style can be found in header.less -->
    <nav class="navbar navbar-static-top" role="navigation">
        <!-- Sidebar toggle button-->
        <a href="#" class="navbar-btn sidebar-toggle" data-toggle="offcanvas" role="button">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
        </a>
        <div class="navbar-right">
            <ul class="nav navbar-nav">
                <!-- User Account: style can be found in dropdown.less -->
                <li class="dropdown user user-menu">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                        <i class="glyphicon glyphicon-user"></i>
                        <span>个人中心<i class="caret"></i></span>
                    </a>
                    <ul class="dropdown-menu">
                        <!-- User image -->
                        <li class="user-header bg-light-blue">
                            <img src="../static/img/pers/rw1.png" class="img-circle" alt="User Image"/>
                            <p>
                                我
                            </p>
                        </li>
                        <!-- Menu Body -->
                        <li class="user-body">
                            <div class="col-xs-4 text-center">
                                <a href="/findManger">个人信息</a>
                            </div>
                            <div class="col-xs-4 text-center">
                                <a href="/findAllLogs">操作日志</a>
                            </div>
                            <div class="col-xs-4 text-center">
                                <a href="/login">退出登录</a>
                            </div>
                        </li>
                    </ul>
                </li>
            </ul>
        </div>
    </nav>
</header>
<div class="wrapper row-offcanvas row-offcanvas-left">
    <!-- Left side column. contains the logo and sidebar -->
    <aside class="left-side sidebar-offcanvas">
        <!-- sidebar: style can be found in sidebar.less -->
        <section class="sidebar">
            <!-- Sidebar user panel -->
            <div class="user-panel">
                <div class="pull-left image">
                    <img src="../static/img/pers/rw1.png" class="img-circle" alt="User Image"/>
                </div>
                <div class="pull-left info">
                    <p>你好，管理员</p>

                    <a href="#"><i class="fa fa-circle text-success"></i> 在线</a>
                </div>
            </div>
            <!-- search form -->
            <form action="#" method="get" class="sidebar-form">
                <div class="input-group">
                    <input type="text" name="search" class="form-control" placeholder="搜索..."/>
                    <span class="input-group-btn">
                                <button type='submit' name='searchtoUrl' id='search-btn' class="btn btn-flat"><i
                                        class="fa fa-search"></i></button>
                            </span>
                </div>
            </form>
            <!-- /.search form -->
            <!-- sidebar menu: : style can be found in sidebar.less -->
            <ul class="sidebar-menu">
                <li>
                    <a href="index.html">
                        <i class="fa fa-dashboard"></i> <span>首页</span>
                    </a>
                </li>
                <li class="treeview">
                    <a href="#">
                        <i class="fa fa-bar-chart-o"></i>
                        <span>日志管理</span>
                        <i class="fa fa-angle-left pull-right"></i>
                    </a>
                    <ul class="treeview-menu">
                        <li><a href="/LogCatchPre"><i class="fa fa-angle-double-right"></i> 日志获取</a></li>
                        <li><a href="LogAnalysis.html"><i class="fa fa-angle-double-right"></i> 日志分析</a></li>
                        <li><a href="LogWarn.html"><i class="fa fa-angle-double-right"></i> 日志报警</a></li>
                    </ul>
                </li>
                <li class="treeview">
                    <a href="#">
                        <i class="fa fa-table"></i> <span>系统管理</span>
                        <i class="fa fa-angle-left pull-right"></i>
                    </a>
                    <ul class="treeview-menu">
                        <li><a href="/SysRightPre"><i class="fa fa-angle-double-right"></i> 权限管理</a></li>
                        <li><a href="/PersRightPre"><i class="fa fa-angle-double-right"></i> 人员管理</a></li>
                    </ul>
                </li>
                <li>
                    <a href="calendar.html">
                        <i class="fa fa-calendar"></i> <span>日历</span>

                    </a>
                </li>
                <li>
                    <a href="/findAllMailsInBox">
                        <i class="fa fa-envelope"></i> <span>邮箱</span>

                    </a>
                </li>
            </ul>
        </section>
        <!-- /.sidebar -->
    </aside>
    <!-- Right side column. Contains the navbar and content of the page -->
    <aside class="right-side">
        <!-- Main content -->
        <div class="content">
            <div class="gaea-view ng-scope">
                <div class="gaea-navbar ng-scope" ui-view="navbar">
                    <div class="navbar-resource ng-scope">
                        <div class="resource-navbar">
                            <div class="resource-nav-header">
                                <img class="resource-icon"
                                     ng-src="https://qiniu.staticfile.org/static/images/sidebar/account.03e5632b.svg"
                                     alt
                                     src="../static/img/account.03e5632b.svg">
                                <strong>个人中心</strong>
                                <span>
                                <strong>></strong>
                            </span>
                                <span class="ng-binding">个人信息</span>
                            </div>
                            <div class="resource-menu">
                                <ul class="resource-breadcrumb clearfix1">
                                    <li iam-disabled class="basic-operation" style="display: list-item;">
                                        <a ui-sref="gaea.user.profile" ui-sref-active="actived" class="ng-binding "
                                           href="/findManger">个人信息</a>
                                    </li>
                                    <li class="basic-operation">
                                        <a ui-sref="gaea.user.oplog" ui-sref-active="actived" class="ng-binding actived"
                                           onclick="function getLogs() {
                                        $.ajax(
                                            {
                                            type:'get',
                                            url:'/findAllLogs',
                                            date:{
                                                pageNum:0,
                                                pageSize:8
                                            },
                                            dataType:'json',

                                            }

                                        )
                                    }
                                    getLogs()">操作日志</a>
                                    </li>
                                </ul>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="gaea-main-content ng-scope" ui-view style>
                <div class="gaea-user user-oplog ng-scope">
                    <div class="page-tip">
                        <p class="text-muted">操作日志记录了您在本账号中进行的所有操作。防止异常操作的出现，便于您的核查。</p>
                    </div>
                    <div class="width:80%">
                        <table class="table table-hover">
                            <thead>
                            <tr>
                                <th>时间</th>
                                <th>用户</th>
                                <th>操作</th>
                                <th>登录ip</th>
                            </tr>
                            </thead>
                            <tbody>
                            <tr th:each="log: ${logList}">
                                <td th:text="${log.date}"></td>
                                <td th:text="${log.operator}"></td>
                                <td th:text="${log.operation}"></td>
                                <td th:text="${log.ipaddr}"></td>
                            </tr>
                            </tbody>
                        </table>
                        <div class="modal-footer no-margin-top">
                            <ul class="pagination pull-right no-margin">
                                <!-- 首页 -->
                                <li>
                                    <a th:href="'/findAllLogs?pageNum=0'">首页</a>
                                </li>
                                <!-- 上一页 -->
                                <li th:if="${logList.hasPrevious()}">
                                    <a th:href="'/findAllLogs?pageNum=' + ${logList.previousPageable().getPageNumber()}"
                                       th:text="上一页"></a>
                                </li>
                                <!-- 中间页 -->
                                <li th:each="pageNum:${#numbers.sequence(0, logList.getTotalPages() - 1)}">
                                    <a th:href="'/findAllLogs?pageNum=' + ${pageNum}" th:text="${pageNum + 1}"
                                       th:if="${pageNum ne logList.pageable.getPageNumber()}"></a>
                                    <a th:href="'/findAllLogs?pageNum=' + ${pageNum}" th:text="${pageNum + 1}"
                                       th:if="${pageNum eq logList.pageable.getPageNumber()}"
                                       th:style="'font-weight:bold;background: #6faed9;'"></a>
                                </li>
                                <!-- 下一页 -->
                                <li th:if="${logList.hasNext()}">
                                    <a th:href="'/findAllLogs?pageNum=' + ${logList.nextPageable().getPageNumber()}"
                                       th:text="下一页"></a>
                                </li>
                                <!-- 尾页 -->
                                <li>
                                    <a th:href="'/findAllLogs?pageNum=' + ${logList.getTotalPages() - 1}">尾页</a>
                                </li>
                            </ul>
                        </div>
                    </div>
                </div>
            </div>
        </div><!-- /.content -->
    </aside><!-- /.right-side -->
</div><!-- ./wrapper -->
<!-- jQuery 2.0.2 -->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.2/jquery.min.js"></script>
<!-- jQuery UI 1.10.3 -->
<script src="../static/js/jquery-ui-1.10.3.min.js" type="text/javascript"></script>
<!-- Bootstrap -->
<script src="../static/js/bootstrap.min.js" type="text/javascript"></script>
<!-- AdminLTE App -->
<script src="../static/js/AdminLTE/app.js" type="text/javascript"></script>
<!-- Page specific script -->
</body>
</html>